#! /bin/sh -vx
# $Id$
# Copyright 2017 Karl Berry <tex-live@tug.org>
# Copyright 2009, 2011 Peter Breitenlohner <tex-live@tug.org>
# You may freely use, modify and/or distribute this file.

BinDir=${BinDir:-.}
ExeExt=${ExeExt:-}
_omfonts=$BinDir/omfonts$ExeExt

tests=tests

test -d $tests || mkdir -p $tests

TEXMFCNF=$srcdir/../../kpathsea \
  $_omfonts -opl2ofm -verbose $srcdir/$tests/repeat $tests/xrepeated || exit 1

TEXMFCNF=$srcdir/../../kpathsea \
  $_omfonts -ofm2opl -verbose $tests/xrepeated $tests/xrepeated || exit 2

diff $srcdir/$tests/repeated.opl $tests/xrepeated.opl || exit 3

